package com.lipy.java8study;

import java.util.concurrent.TimeUnit;

/**
 * @description:
 * @author: lipy
 * @create: 2020-07-20 17:48
 **/

public class Tools {
    public static void sleepMS(long ms){
        try {
            TimeUnit.MILLISECONDS.sleep(ms);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
    public static void sleepSec(long sec){
        try {
            TimeUnit.SECONDS.sleep(sec);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
